/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package define;

/**
 *
 * @author Xuan Cau
 */
public class Define {
    public static final int PORT        = 9875;
    public static final int SUCCESS     = 100;
    public static final int FAIL        = 101;
    
    public static final int SIZE_OF_INT8  =   1;
    public static final int SIZE_OF_INT16 =   2;
    public static final int SIZE_OF_INT32 =   4;
    
    public static final int HELLO               = 10;
    public static final int RESPOND_HELLO       = 11;
    public static final int UPLOAD              = 12;
    public static final int RESPOND_UPLOAD      = 13;
    public static final int DOWNLOAD            = 14;
    public static final int RESPOND_DOWNLOAD    = 15;
    public static final int SEARCH              = 16;
    public static final int RESPOND_SEARCH      = 17;
    public static final int CONFIG              = 18;
    public static final int RESPOND_CONFIG      = 19;
    public static final int DOWNLOAD_TORRENT    = 20;
    public static final int RESPOND_DOWNLOAD_TORRENT    = 21;
    
    public static final int MAX_CHUNK   = 3*1024;
    public static final int MAX_LEN     = 4*1024;
    
    public static final int TIME_MAX_WAIT   = 3;
    
}
